package org.cloudlab.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.cloudlab.bean.SubRecord;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

/**
 * 投稿记录映射层
 *
 * @author Liu Yicong
 * @date 2023/9/8
 */
@Repository
@Transactional
public interface SubRecordMapper extends BaseMapper<SubRecord> {
	Page<SubRecord> queryByPage(Page<SubRecord> page, @Param("userId") Long userId, @Param("paperName") String paperName);

	Page<SubRecord> queryByPaperId(Page<SubRecord> page, @Param("paperId") Long paperId);

	Page<SubRecord> queryByJournalId(Page<SubRecord> page, Long journalId);
}
